package DisplayDatas;

import java.util.*;

import DataObjects.Article;
import Main.Pair;

public class ListOfArticlesToDisplay {
	
	private Collection<Article> articles;
	private String query;
	private long countFound;
	private Vector<Pair<String, Integer>> cats;
	
	public ListOfArticlesToDisplay(Collection<Article> articles,String query,long countFound,Vector<Pair<String, Integer>> cats){
		this.articles=articles;
		this.query=query;
		this.countFound=countFound;
		this.cats=cats;
	}

	public long getCountFound() {
		return countFound;
	}

	public Vector<Pair<String, Integer>> getCats() {
		return cats;
	}
	
	public Iterator<Article> getArticlesIterator() {
		return articles.iterator();
	}
	
	public Collection<Article> getArticles() {
		return articles;
	}

	public String getQuery() {
		return query;
	}	
}
